package com.yao.mssm.system.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;

@TableName(value="employee")
public class Employee extends Model<Employee> implements Serializable{

	@TableField(exist = false)
	private static final long serialVersionUID = 6169016955853360788L;
	
	private int id;
	
	private String name;
	
	private int sex;
	
	private Date birthday;
	
	@TableField(value="contact_code")
	private String contactCode;
	
	@TableLogic
	private int del;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getContactCode() {
		return contactCode;
	}

	public void setContactCode(String contactCode) {
		this.contactCode = contactCode;
	}

	public int getDel() {
		return del;
	}

	public void setDel(int del) {
		this.del = del;
	}

	
	/** 指定主键 */
	@Override
	protected Serializable pkVal() {
		return id;
	}

}
